<template>
  <div class="app-container calendar-list-container">
    <el-tabs style='margin-top:15px;' v-model="activeName" type="border-card">
      <el-tab-pane v-for="item in tabMapOptions" :label="item.label" :key='item.key' :name="item.key">

        <keep-alive>
          <sf-products v-if="item.key == 'sfPro'"></sf-products>
          <s-parts v-if="item.key == 'sParts'"></s-parts>
          <electrode v-if="item.key == 'electrode'"></electrode>
        </keep-alive>

      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
  import sfProducts from './components/sfProducts.vue'
  import sParts from './components/sParts.vue'
  import electrode from './components/electrode.vue'
  export default {
    name: 'editBOM',
    components:{
      sfProducts,
      sParts,
      electrode
    },
    data() {
      return {
        tabMapOptions: [
          { label: '半成品', key: 'sfPro' },
          { label: '标准件', key: 'sParts' },
          { label: '电极', key: 'electrode' }
        ],
        activeName: 'sfPro',
      }
    },
    mounted() {

    },
    methods: {

    }
  }
</script>

<style lang="scss" scoped>

</style>
